#include <stdio.h>
#include <math.h>
#include <stdlib.h>

//https://www.nowcoder.com/practice/20ef0972485e41019e39543e8e895b7f?tpId=188&&tqId=38589&rp=1&ru=/activity/oj&qru=/ta/job-code-high-week/question-ranking

int *twoSum(int *numbers, int numbersLen, int target, int *returnSize) {
    int *rets = (int *) malloc(2 * sizeof(int));
    *returnSize = 2;
    for (int i = 0; i < numbersLen; i++) {
        if (numbers[i] > target + 10) {
            continue;
        }
        for (int j = 0; j < numbersLen; j++) {
            if (numbers[i] + numbers[j] == target && i != j) {
                rets[0] = fmin(i, j) + 1;
                rets[1] = fmax(i, j) + 1;
                return rets;

            }
        }
    }
    *returnSize = 0;
    return 0;
}

int main() {

    return 0;
}